home *** CD-ROM | disk | FTP | other *** search
- Path: colossus.holonet.net!russell
- From: russell@news.mdli.com (Russell Blackadar)
- Newsgroups: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp
- Subject: Re: float != float and floats as return types
- Followup-To: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp
- Date: 30 Jan 1996 06:36:00 GMT
- Organization: HoloNet National Internet Access System: 510-704-1058/modem
- Message-ID: <4eke8g$64m@colossus.holonet.net>
- References: <4ej9lb$mpc@fu-berlin.de> <310D4D9C.7DAB2E1B@alcyone.com>
- NNTP-Posting-Host: jubal.mdli.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Erik Max Francis (max@alcyone.com) wrote:
- ...
- : I don't understand what you find surprising. Both the second and third column
- : have the same computation, except that in one of the x^2 function is inlined
- : and in the other it is called through a function. In either case, you get
- : exactly the same value. What is the objection?
-
- What is surprising is that all the columns are not zero! The original poster
- was offering some speculations as to how that might have happened, but as you
- say (and I think he'd agree) it doesn't wash. I ran his posted code and
- got all zeroes. Either there's a *serious* problem with his compiler, or the
- posted code is not the same as what he compiled. Either way, he should try
- to pin down the cause of the trouble with more print statements, etc...
- --
- Russell Blackadar, russell@mdli.com
-